<style>
    /* 联系方式样式 */
    .contact-info {
        margin-top: 30px;
        padding: 20px;
        background: #fff;
        border-radius: 8px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.1);
    }

    .contact-title {
        font-size: 16px;
        color: #333;
        margin-bottom: 15px;
        padding-bottom: 10px;
        border-bottom: 1px solid #eee;
    }

    .contact-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .contact-item {
        display: flex;
        align-items: center;
        color: #666;
        font-size: 14px;
    }

    .contact-item i {
        margin-right: 8px;
        color: #1E9FFF;
    }

    .contact-label {
        min-width: 50px;
        margin-right: 10px;
        color: #333;
    }

    /* 复制按钮样式 */
    .copy-btn {
        padding: 4px 8px;
        background: #f5f5f5;
        border: none;
        border-radius: 4px;
        color: #666;
        font-size: 12px;
        cursor: pointer;
        transition: all 0.3s;
        margin-left: 10px;
    }

    .copy-btn:hover {
        background: #e0e0e0;
    }

    .copy-btn:active {
        transform: scale(0.95);
    }

    /* 调整联系信息布局 */
    .contact-value {
        display: flex;
        align-items: center;
        flex: 1;
    }

    /* 移动端适配 */
    @media screen and (max-width: 767px) {
        .contact-info {
            margin-top: 20px;
            padding: 15px;
        }

        .copy-btn {
            padding: 3px 6px;
            font-size: 11px;
        }
    }
</style>

 <!-- 添加联系方式 -->
 <div class="contact-info">
    <div class="contact-title">
        联系方式
        <span class="contact-title-right">
            <a href="javascript:;" class="contact-title-right-link">
                <i class="layui-icon layui-icon-edit"></i>
            </a>
            <small style="color: #5a20bc;font-size: 12px;">非常期待您的反馈和建议</small>
        </span>
     
    </div>
    <div class="contact-list">
        <div class="contact-item">
            <i class="layui-icon layui-icon-email"></i>
            <span class="contact-label">邮箱</span>
            <div class="contact-value">
                <span>18171759943@163.com</span>
                <button class="copy-btn" onclick="copyText('18171759943@163.com')">复制</button>
            </div>
        </div>
        <div class="contact-item">
            <i class="layui-icon layui-icon-login-wechat"></i>
            <span class="contact-label">微信</span>
            <div class="contact-value">
                <span>ying200553</span>
                <button class="copy-btn" onclick="copyText('ying200553')">复制</button>
            </div>
        </div>
    </div>
</div>

<script>
    // 复制文本功能
    function copyText(text) {
        // 创建临时输入框
        const input = document.createElement('input');
        input.setAttribute('value', text);
        document.body.appendChild(input);
        input.select();
        
        try {
            // 执行复制命令
            document.execCommand('copy');
            // 显示成功提示
            layer.msg('复制成功', {
                icon: 1,
                time: 1000
            });
        } catch (err) {
            // 显示错误提示
            layer.msg('复制失败，请手动复制', {
                icon: 2,
                time: 2000
            });
        }
        
        // 移除临时输入框
        document.body.removeChild(input);
    }
</script>